package com.zjj.learn.designmodel.work.observer;

/**
 * 具体观察者
 **/
public class WeChatUser implements Observer{

    private String name;

    public WeChatUser(String name) {
        this.name = name;
    }

    @Override
    public void accept(String message) {
        System.out.println(this.name + "接收消息：" + message);
    }
}
